<?php
/*
 * Created on 2009-7-19
 *
 * Author: guobin@yizin.net
 */
global $header;
global $footer;
global $menu;

global $id;
global $name;
global $description;
global $error;

global $featureManager;
$header['title'] = '角色添加 - 用户管理';
$header['head'] = '';
$featureManager->apply("com.yizin.platform.admin.header", $header);
$menu['current'] = 'user.role';
$featureManager->apply("com.yizin.platform.admin.menu", $menu);
$featureManager->apply("com.yizin.platform.admin.footer", $footer);

?>
<?= $header['html'] ?>

<div class="ysi-container-C"><div class="ysi-container-CI">
	
	<div>
		<a href="<?=REQUEST_BASE?>admin/user/role/">&lt;&lt;返回角色管理</a>
	</div>
	
	<form class="ysi-form ysi-form-w6"  action="<?=REQUEST_BASE?>admin/user/role/create/" method="post">
		<fieldset>
      <div class="ysi-form-row">
        <div class="ysi-form-label"><label for="username">ID</label></div>
        <div class="ysi-form-field"><input type="text" name="id" value="<?=$id?>" /><span class="ysi-form-error"><?=$error['id']?></span><br/><span class="ysi-form-note">字母数字组合，字母开头，1-20字符</span></div>
        <div class="clear"></div>
      </div>
      <div class="ysi-form-row">
        <div class="ysi-form-label"><label for="email">名称</label></div>
        <div class="ysi-form-field"><input type="text" name="name" value="<?=$name?>" /><span class="ysi-form-error"><?=$error['name']?></span><br /><span class="ysi-form-note">1-20字符</span></div>
        <div class="clear"></div>
      </div>
      <div class="ysi-form-row">
        <div class="ysi-form-label"><label for="password">说明</label></div>
        <div class="ysi-form-field"><textarea name="description"><?=$description?></textarea><span class="ysi-form-error"><?=$error['description']?></span><br /></div>
        <div class="clear"></div>
      </div>
			<div class="ysi-form-row ysi-form-indent">
        <div class="ysi-form-field">
          <input class="ysi-form-submit" type="submit" value="提交" />
        </div>
      </div>
    </fieldset>
	<div class="clear-1"></div>
	</form>

</div>
</div>
<div class="ysi-container-L">
<?= $menu['html'] ?>
</div>

<?= $footer['html'] ?>
